import { createRouter, createWebHistory } from 'vue-router'
import denglu from '@/views/denglu/denglu.vue'
import zhuce from '@/views/zhuce/zhuce.vue'
import sousuo from '@/views/sousuo/sousuo.vue'
import demo from '@/views/home/demo.vue'
import demo1 from '@/views/home/demo1.vue'
import demo2 from '@/views/home/demo2.vue'
import demo3 from '@/views/home/demo3.vue'
import demo4 from '@/views/home/demo4.vue'
import app from '@/components/app.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/denglu', component: denglu, },
    { path: '/zhuce', component: zhuce, },
    { path: '/app', component: app, },
    { path: '/sousuo', component: sousuo, },
    {
      path: '/home',
      component: demo,
      children: [
        {
          path: 'demo1',
          component: demo1,
        },
        {
          path: 'demo2',
          component: demo2,
        },
        {
          path: 'demo3',
          component: demo3,
        },
        {
          path: 'demo4',
          component: demo4,
        },
      ]
    },
  ],
})

export default router
